package com.lishe.lishe.retrofit.interfaces;

import com.lishe.lishe.lishe.module.recharge.bean.RechargeRecord;
import com.lishe.lishe.retrofit.BaseDataPageBody;
import com.lishe.lishe.retrofit.BaseRequestBody;
import com.lishe.lishe.retrofit.bean.RechargeRecordDataPageBody;
import com.lishe.lishe.retrofit.bean.UploadInfo;
import com.lishe.lishe.retrofit.bean.WXPayObject;
import com.lishe.lishe.retrofit.bean.WXPayOrderQueryObject;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Url;

/**
 * Created by yang on 2018/1/25.
 */

public interface PayService {

    @FormUrlEncoded
    @POST("Pay1/getPayPreOrder")
    Observable<BaseRequestBody<WXPayObject>> getPayPreOrder(@Field("token") String token, @Field("money") int money, @Field("payType") String payType, @Field("payName") String payName);

    @FormUrlEncoded
    @POST("Pay1/getPayResult")
    Observable<BaseRequestBody<WXPayOrderQueryObject>> getPayResult(@Field("paymentId") String paymentId);

    @FormUrlEncoded
    @POST("pay1/getPointPayList")
    Observable<BaseRequestBody<RechargeRecordDataPageBody<RechargeRecord>>> getRechargeRecord(@Field("token") String token,@Field("page") int page,@Field("pageSize") int pageSize);
}
